package fr.pascal.string;

public class Main {

	public static void main(String[] args) {
		
		String s1 = "cheval";
		String s2 = "cheval";
		System.out.println(s1.equals(s2));
		System.out.println(s1 == s2);
		
		System.out.println();
		
		String s11 = new String("cheval");
		String s21 = new String("cheval");
		
		System.out.println(s11.equals(s21));
		System.out.println(s11 == s21);
	}
}
